home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 November / Chip Kasım 2000.iso / prog / basic / 09 / AXA2.CAB / DAJAVA.CAB / com / ms / dxmedia / Vector2Bvr.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-10-14  |  2.5 KB  |  134 lines

  1. package com.ms.dxmedia;
  2.  
  3. import com.ms.com.ComFailException;
  4. import com.ms.dxmedia.rawcom.DAVector2;
  5. import com.ms.dxmedia.rawcom.IDABehavior;
  6. import com.ms.dxmedia.rawcom.IDAVector2;
  7.  
  8. public class Vector2Bvr extends Behavior {
  9.    private IDAVector2 _COMptr;
  10.  
  11.    public Vector2Bvr normalize() {
  12.       try {
  13.          return new Vector2Bvr(this.getCOMPtr().Normalize());
  14.       } catch (ComFailException var3) {
  15.          throw StaticsBase.handleError(var3);
  16.       }
  17.    }
  18.  
  19.    public NumberBvr getX() {
  20.       try {
  21.          return new NumberBvr(this.getCOMPtr().getX());
  22.       } catch (ComFailException var3) {
  23.          throw StaticsBase.handleError(var3);
  24.       }
  25.    }
  26.  
  27.    public void setCOMBvr(IDABehavior var1) {
  28.       super.setCOMBvr(var1);
  29.       this._COMptr = (IDAVector2)var1;
  30.    }
  31.  
  32.    public NumberBvr lengthSquared() {
  33.       try {
  34.          return new NumberBvr(this.getCOMPtr().getLengthSquared());
  35.       } catch (ComFailException var3) {
  36.          throw StaticsBase.handleError(var3);
  37.       }
  38.    }
  39.  
  40.    public static Vector2Bvr newUninitBvr() {
  41.       return new Vector2Bvr(new DAVector2());
  42.    }
  43.  
  44.    protected Behavior newUninitBehavior() {
  45.       return newUninitBvr();
  46.    }
  47.  
  48.    public NumberBvr getPolarCoordAngle() {
  49.       try {
  50.          return new NumberBvr(this.getCOMPtr().getPolarCoordAngle());
  51.       } catch (ComFailException var3) {
  52.          throw StaticsBase.handleError(var3);
  53.       }
  54.    }
  55.  
  56.    public NumberBvr getY() {
  57.       try {
  58.          return new NumberBvr(this.getCOMPtr().getY());
  59.       } catch (ComFailException var3) {
  60.          throw StaticsBase.handleError(var3);
  61.       }
  62.    }
  63.  
  64.    public IDAVector2 getCOMPtr() {
  65.       return this._COMptr;
  66.    }
  67.  
  68.    public Vector2Bvr transform(Transform2Bvr var1) {
  69.       try {
  70.          return new Vector2Bvr(this.getCOMPtr().Transform(var1.getCOMPtr()));
  71.       } catch (ComFailException var4) {
  72.          throw StaticsBase.handleError(var4);
  73.       }
  74.    }
  75.  
  76.    public Vector2Bvr(IDAVector2 var1) {
  77.       super(var1);
  78.       this._COMptr = var1;
  79.    }
  80.  
  81.    public Vector2Bvr() {
  82.       super((IDABehavior)null);
  83.       this._COMptr = null;
  84.    }
  85.  
  86.    public NumberBvr length() {
  87.       try {
  88.          return new NumberBvr(this.getCOMPtr().getLength());
  89.       } catch (ComFailException var3) {
  90.          throw StaticsBase.handleError(var3);
  91.       }
  92.    }
  93.  
  94.    public Vector2Bvr mul(NumberBvr var1) {
  95.       try {
  96.          return new Vector2Bvr(this.getCOMPtr().MulAnim(var1.getCOMPtr()));
  97.       } catch (ComFailException var4) {
  98.          throw StaticsBase.handleError(var4);
  99.       }
  100.    }
  101.  
  102.    public Vector2Bvr mul(double var1) {
  103.       try {
  104.          return new Vector2Bvr(this.getCOMPtr().Mul(var1));
  105.       } catch (ComFailException var5) {
  106.          throw StaticsBase.handleError(var5);
  107.       }
  108.    }
  109.  
  110.    public Vector2Bvr div(NumberBvr var1) {
  111.       try {
  112.          return new Vector2Bvr(this.getCOMPtr().DivAnim(var1.getCOMPtr()));
  113.       } catch (ComFailException var4) {
  114.          throw StaticsBase.handleError(var4);
  115.       }
  116.    }
  117.  
  118.    public Vector2Bvr div(double var1) {
  119.       try {
  120.          return new Vector2Bvr(this.getCOMPtr().Div(var1));
  121.       } catch (ComFailException var5) {
  122.          throw StaticsBase.handleError(var5);
  123.       }
  124.    }
  125.  
  126.    public NumberBvr getPolarCoordLength() {
  127.       try {
  128.          return new NumberBvr(this.getCOMPtr().getPolarCoordLength());
  129.       } catch (ComFailException var3) {
  130.          throw StaticsBase.handleError(var3);
  131.       }
  132.    }
  133. }
  134.